package com.xiaoshangkou.hellopra.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.util.Date;

/**
 * 评论
 */
@Data
public class Comment {
    @TableId
    private Integer coid;//评论id
    private Boolean status;//true表示评论开启，false表示评论关闭
    private String commentDesc;//评论内容
    private String time;//评论时间
    private Integer pid;//评论所属文章的id
    @TableField(exist = false)
    private Post post;//评论所属文章

    private Integer mid;//评论用户id
    @TableField(exist = false)
    private Member member;//评论用户

}
